//
//  YBHomeVC.m
//  Example
//
//  Created by Rich on 16/4/20.
//  Copyright © 2016年 Rich. All rights reserved.
//

#import "YBHomeVC.h"
#import "HomeView.h"

@interface YBHomeVC() <HomeViewDelegate>

@property(nonatomic,assign) NSInteger status;
@property(nonatomic,assign) NSInteger currentPageIndex;
@property(nonatomic,assign) NSInteger pageSize;
@property(nonatomic,strong) HomeView *homePageView;
@property(nonatomic,strong) NSArray *dataListArray;
@property(nonatomic,strong) NSArray *adListArray;
//@property(nonatomic,strong) ProjectListItemDataObject *secKillProjectObject;
@property(nonatomic,assign) BOOL isStart;
@property(nonatomic,strong) UIImageView *headerImageView;
//@property(nonatomic,strong) FCBankCardViewModel* viewModel;


@end

@implementation YBHomeVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didReadAllMessage) name:@"ReceiveNewNotification" object:nil];
    self.view.backgroundColor = BG_COLOR;
    [self createHomeView];
    [self assembleData];
    
    self.edgesForExtendedLayout = UIRectEdgeNone;
    
    self.extendedLayoutIncludesOpaqueBars = YES;
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];

}

#pragma mark - createView

- (void)createHomeView
{
    if (self.homePageView == nil) {
        float originY = self.navigationBar.top + self.navigationBar.height;
        float height = self.view.frame.size.height - originY - 49.0f;
        CGRect rect = CGRectMake(0.0f, originY, self.view.frame.size.width, height);
        _homePageView = [[HomeView alloc] initWithFrame:rect];
        self.homePageView.homeViewDelegate = self;
        [self.view addSubview:self.homePageView];
        
        
    }
    
}



#pragma mark - data

- (void)assembleData
{
    
    
}


@end
